package com.lagou.pojo;

import lombok.Data;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 *配置类
 *
 * <P>
 * 用于存储数据源和MapperStatement集合
 *
 * @author Tengfei.Wang
 * @date 26/8/2020
 */
@Data
public class Configuration {

    /**
     * 数据源信息
     */
    private DataSource dataSource;

    /**
     * key:   Statement id
     * value: MapperStatement
     */
    private Map<String, MapperStatement> statementMap = new HashMap<String, MapperStatement>();
}
